/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package metier;



import java.util.List;

import dao.Idao;
import model.Account;
import model.Module;
import model.Thematic;


/**
 *
 * @author mehdi
 */
public class MetierImpl implements Imetier {
  
    private  Idao dao;

    public Idao getDao() {
        return dao;
    }

    public void setDao(Idao dao) {
        this.dao = dao;
    }

    @Override
    public void addcompte(Account account) {
      dao.addcompte(account);
    }

    @Override
    public void updatecompte(Account account) {
        dao.updatecompte(account);
    }

    @Override
    public void deletecompte(Long pk) {
       dao.deletecompte(pk);
    }

    @Override
    public Account findcompte(Long pk) {
       return dao.findcompte(pk);
    }

    @Override
    public void addtheme(Thematic theme) {
      dao.addtheme(theme);
    }

    @Override
    public void updatetheme(Thematic theme) {
        dao.updatetheme(theme);
        
    }

    @Override
    public Thematic findtheme(Long pk) {
      return  dao.findtheme(pk);
        
    }

    @Override
    public void deletetheme(Long pk) {
        dao.deletetheme(pk);
    }

	@Override
	public List<Account> findcompteAll() {
		// TODO Auto-generated method stub
		return dao.findcompteAll();
	}

	@Override
	public List<Thematic> findthemeAll() {
		// TODO Auto-generated method stub
		return dao.findthemeAll();
	}

	@Override
	public Account findcompte(String login) {
		// TODO Auto-generated method stub
	return	dao.findcompte(login);
	}

	@Override
	public Thematic findtheme(String titre) {
		
		return dao.findtheme(titre);
	}

	@Override
	public void affecterModulTheme(Long num, Long code) {
		dao.affecterModulTheme(num, code);
		
	}

	@Override
	public void addmodule(Module module) {
	    dao.addmodule(module);
		
	}

	@Override
	public void updatemodule(Module module) {
		dao.updatemodule(module);
		
	}

	@Override
	public Module findmodule(Long pk) {
		
		return dao.findmodule(pk);
	}

	@Override
	public void deletemodule(Long pk) {
		dao.deletemodule(pk);
		
	}

	@Override
	public List<Module> findmoduleAll() {

		return dao.findmoduleAll();
	}

	@Override
	public Module findmodule(String titre) {
	
		return dao.findmodule(titre);
	}
    
}
